package com.compass.mobile.framework.utils

import com.compass.mobile.framework.constant.ADD_IMAGE_ACTION
import com.compass.mobile.framework.constant.BACKSPACE_ACTION
import com.compass.mobile.framework.constant.CANCEL_ACTION
import com.compass.mobile.framework.constant.CASE_REPORT_ACTION
import com.compass.mobile.framework.constant.CLINICAL_RECEPTION
import com.compass.mobile.framework.constant.END_ACTION
import com.compass.mobile.framework.constant.EVALUATION_ACTION
import com.compass.mobile.framework.constant.INQUIRY_ACTION
import com.compass.mobile.framework.constant.INSPECT_ACTION
import com.compass.mobile.framework.constant.NURSE_ACTION
import com.compass.mobile.framework.constant.OK_ACTION
import com.compass.mobile.framework.constant.PRESCRIPTION_ACTION
import com.compass.mobile.framework.constant.PRESCRIPTION_NO_ACTION
import com.compass.mobile.framework.constant.REFERRAL_ACTION
import com.compass.mobile.framework.constant.TEST_ACTION
import com.compass.mobile.framework.constant.TEST_ORDER_ACTION

/**
 * Description： 处理message工具类
 * Date:2024/6/25 20:51
 */
fun getAction(actionCode: String?): String {
    when (actionCode) {
        "13" -> {
            //检验检查直接支付action
            return TEST_ACTION
        }

        "14" -> {
            //问诊单评价action
            return EVALUATION_ACTION
        }

        "16" -> {
            //转诊
            return REFERRAL_ACTION
        }

        "27" -> {
            //问诊支付成功
            return INQUIRY_ACTION
        }

        "28" -> {
            //处方审核通过action
            return PRESCRIPTION_ACTION
        }
        "20" -> {
            //处方审核不通过action
            return PRESCRIPTION_NO_ACTION
        }

        "31" -> {
            //取消问诊
            return CANCEL_ACTION
        }

        "40" -> {//结束问诊
            return END_ACTION
        }

        "41","50" -> {
            //退诊
            return BACKSPACE_ACTION
        }

        "42" -> {
            //护理订单action
            return NURSE_ACTION
        }

        "43" -> {
            //病历报告action
            return CASE_REPORT_ACTION
        }

        "44" -> {
            //检验检查订单列表 支付action
            return TEST_ORDER_ACTION
        }

        "45" -> {
            //接诊action
            return CLINICAL_RECEPTION
        }
        "46" -> {
            //开住院
            return CLINICAL_RECEPTION
        }

        "47" -> {
            //开检查检验
            return INSPECT_ACTION
        }
        "51" -> {
            //问诊单新增图片
            return ADD_IMAGE_ACTION
        }

        else -> {
            return OK_ACTION
        }

    }


}